﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F23 RID: 3875
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicEnterLayerScRsp : IMessage<RogueMagicEnterLayerScRsp>, IMessage, IEquatable<RogueMagicEnterLayerScRsp>, IDeepCloneable<RogueMagicEnterLayerScRsp>, IBufferMessage
	{
		// Token: 0x1700313B RID: 12603
		// (get) Token: 0x0600ADDE RID: 44510 RVA: 0x001D6503 File Offset: 0x001D4703
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicEnterLayerScRsp> Parser
		{
			get
			{
				return RogueMagicEnterLayerScRsp._parser;
			}
		}

		// Token: 0x1700313C RID: 12604
		// (get) Token: 0x0600ADDF RID: 44511 RVA: 0x001D650A File Offset: 0x001D470A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicEnterLayerScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700313D RID: 12605
		// (get) Token: 0x0600ADE0 RID: 44512 RVA: 0x001D651C File Offset: 0x001D471C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicEnterLayerScRsp.Descriptor;
			}
		}

		// Token: 0x0600ADE1 RID: 44513 RVA: 0x001D6523 File Offset: 0x001D4723
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicEnterLayerScRsp()
		{
		}

		// Token: 0x0600ADE2 RID: 44514 RVA: 0x001D652C File Offset: 0x001D472C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicEnterLayerScRsp(RogueMagicEnterLayerScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.rogueTournCurSceneInfo_ = ((other.rogueTournCurSceneInfo_ != null) ? other.rogueTournCurSceneInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600ADE3 RID: 44515 RVA: 0x001D6578 File Offset: 0x001D4778
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicEnterLayerScRsp Clone()
		{
			return new RogueMagicEnterLayerScRsp(this);
		}

		// Token: 0x1700313E RID: 12606
		// (get) Token: 0x0600ADE4 RID: 44516 RVA: 0x001D6580 File Offset: 0x001D4780
		// (set) Token: 0x0600ADE5 RID: 44517 RVA: 0x001D6588 File Offset: 0x001D4788
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700313F RID: 12607
		// (get) Token: 0x0600ADE6 RID: 44518 RVA: 0x001D6591 File Offset: 0x001D4791
		// (set) Token: 0x0600ADE7 RID: 44519 RVA: 0x001D6599 File Offset: 0x001D4799
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicCurSceneInfo RogueTournCurSceneInfo
		{
			get
			{
				return this.rogueTournCurSceneInfo_;
			}
			set
			{
				this.rogueTournCurSceneInfo_ = value;
			}
		}

		// Token: 0x0600ADE8 RID: 44520 RVA: 0x001D65A2 File Offset: 0x001D47A2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicEnterLayerScRsp);
		}

		// Token: 0x0600ADE9 RID: 44521 RVA: 0x001D65B0 File Offset: 0x001D47B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicEnterLayerScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.RogueTournCurSceneInfo, other.RogueTournCurSceneInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600ADEA RID: 44522 RVA: 0x001D6600 File Offset: 0x001D4800
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.rogueTournCurSceneInfo_ != null)
			{
				num ^= this.RogueTournCurSceneInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600ADEB RID: 44523 RVA: 0x001D6655 File Offset: 0x001D4855
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600ADEC RID: 44524 RVA: 0x001D665D File Offset: 0x001D485D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600ADED RID: 44525 RVA: 0x001D6668 File Offset: 0x001D4868
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Retcode);
			}
			if (this.rogueTournCurSceneInfo_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.RogueTournCurSceneInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600ADEE RID: 44526 RVA: 0x001D66C4 File Offset: 0x001D48C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.rogueTournCurSceneInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueTournCurSceneInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600ADEF RID: 44527 RVA: 0x001D671C File Offset: 0x001D491C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicEnterLayerScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.rogueTournCurSceneInfo_ != null)
			{
				if (this.rogueTournCurSceneInfo_ == null)
				{
					this.RogueTournCurSceneInfo = new RogueMagicCurSceneInfo();
				}
				this.RogueTournCurSceneInfo.MergeFrom(other.RogueTournCurSceneInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600ADF0 RID: 44528 RVA: 0x001D6784 File Offset: 0x001D4984
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600ADF1 RID: 44529 RVA: 0x001D6790 File Offset: 0x001D4990
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 82U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.rogueTournCurSceneInfo_ == null)
						{
							this.RogueTournCurSceneInfo = new RogueMagicCurSceneInfo();
						}
						input.ReadMessage(this.RogueTournCurSceneInfo);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004680 RID: 18048
		private static readonly MessageParser<RogueMagicEnterLayerScRsp> _parser = new MessageParser<RogueMagicEnterLayerScRsp>(() => new RogueMagicEnterLayerScRsp());

		// Token: 0x04004681 RID: 18049
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004682 RID: 18050
		public const int RetcodeFieldNumber = 4;

		// Token: 0x04004683 RID: 18051
		private uint retcode_;

		// Token: 0x04004684 RID: 18052
		public const int RogueTournCurSceneInfoFieldNumber = 10;

		// Token: 0x04004685 RID: 18053
		private RogueMagicCurSceneInfo rogueTournCurSceneInfo_;
	}
}
